package com.xiaomo.gitee.datamanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName tags
 */
@TableName(value ="tags")
@NoArgsConstructor
@Data
@Schema(description = "标签信息对象",name = "标签信息模型",title = "标签信息模型")
public class Tags implements Serializable {

    @Schema(
            title = "id",
            name = "标签ID",
            example = "标签ID",
            format = "number",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @Schema(
            title = "content",
            name = "标签名称",
            example = "标签名称",
            format = "string",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    @TableField(value = "content")
    private String content;

    @Hidden
    @Serial
    private static final long serialVersionUID = 1L;

    public Tags(String content) {
        this.content = content;
    }
}